]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Fix windows not getting undimmed while hidden
authorRui Matos <tiagomatos@gmail.com>
Mon, 22 Aug 2016 17:53:38 +0000 (19:53 +0200)
committerRui Matos <tiagomatos@gmail.com>
Fri, 9 Sep 2016 15:17:07 +0000 (17:17 +0200)
Mutter's plugin destroy event doesn't happen if a window is hidden
when it gets unmanaged so we also need to handle the
MetaWindow::unmanaged signal to check whether the parent should
dimmed.

https://bugzilla.gnome.org/show_bug.cgi?id=752524

js/ui/windowManager.js

index 5222b986d604f169398abe6cfdd11b667b2e2568..8b0398b3df4d6663a7641263c4fc0c7052ed0d0c 100644 (file)
@@ -1424,6 +1424,11 @@ const WindowManager = new Lang.Class({
 
             actor._windowType = type;
         }));
+        actor.meta_window.connect('unmanaged', Lang.bind(this, function(window) {
+                let parent = window.get_transient_for();
+                if (parent)
+                    this._checkDimming(parent);
+        }));
 
         if (actor.meta_window.is_attached_dialog())
             this._checkDimming(actor.get_meta_window().get_transient_for());